package main

import "fmt"

var Btoml *To

func main() {
	var err error
	Btoml, err = ReadTomlBili()
	if err != nil {
		print(err)
		return
	}
	if len(Btoml.BiliUser) == 0 {
		Btoml.AddUser()
	}
	FansMedal()
	for userid := range Btoml.BiliUser {
		HeartBeat(userid)
	}
	for {
		line := ""
		fmt.Scanln(&line)
		if line == "1" {
			printMedals()
		}
		if line == "2" {
			Btoml.AddUser()
		}
	}
}
